home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / tsr_c.exe / TSR.C < prev    next >
C/C++ Source or Header  |  1992-03-24  |  478b  |  36 lines

  1. #include <conio.h>
  2. #include <dos.h>
  3. #include "vectors.h"
  4.  
  5.  
  6.  
  7. //FILE *file;
  8.  
  9. int mx, my;
  10. int count = 0;
  11. /*
  12. void commit (WORD h)
  13. {
  14.   _BX = h;
  15.   _AX = 0x6800;
  16.   geninterrupt (0x21);
  17. }
  18. */
  19.  
  20. void tsr (int v)
  21. {
  22.   my = wherey ();
  23.   mx = wherex ();
  24.   textattr ((BLUE<<4) + YELLOW);
  25.   gotoxy (60,1);
  26.  
  27.   cprintf ("%02X  --  %d", v, count++);
  28. //  fprintf (file, "%02X -- %04d\n", v, count);
  29. //  commit (file->fd);
  30. //  fflush (file);
  31.  
  32.   gotoxy (mx,my);
  33.  
  34. }
  35.  
  36.